package com.qjs.commom;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

/**
 * 存储所有系统的资源文件
 * @author Lizp
 *
 */
public class CommonProperties {

	static {   
		Properties prop = new Properties();   
		InputStream in = CommonProperties.class.getResourceAsStream("/conf/common.properties");   
		try {   
			prop.load(in);   
			
			appid = prop.getProperty("appid").trim();
			appsecret = prop.getProperty("appsecret").trim();
			redirect_uri = prop.getProperty("redirect_uri").trim();
			response_type = prop.getProperty("response_type").trim();
			state = prop.getProperty("state").trim();
			scope = prop.getProperty("scope").trim();
		} catch (IOException e) {   
			e.printStackTrace();   
		}   
	}   
	
	private CommonProperties() {   
    } 

	
	
	public static String appid;
	public static String appsecret;
	public static String redirect_uri;
	public static String response_type;
	public static String state;
	public static String scope;
	
}
